package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/3/4.
 */

public class BindMemberReq {
    private String mobile;
    private String password;
    private String open_id;
    private String type;
    private String verification;
    private String secret;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    public String getVerification() {
        return verification;
    }

    public void setVerification(String verification) {
        this.verification = verification;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String urlString() {
        return "oauth/bind_member/";
    }

    public String getSecret() {

        String string = "mobile=" + mobile + "&password=" + password + "&open_id=" + open_id + "&type=" + type + "&verification=" + verification;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        Log.e("ssss", "第三方登录绑定手机号_source===>" + string);
        return secret;
    }


}
